var projectTypes = [ {
	"name" : "城市综合体",
	"value" : 100
}, {
	"name" : "购物中心/商场",
	"value" : 200
}, {
	"name" : "商业街",
	"value" : 300
}, {
	"name" : "商业裙楼",
	"value" : 400
}, {
	"name" : "社区商业",
	"value" : 500
}, {
	"name" : "专业市场",
	"value" : 600
}, {
	"name" : "主题商业",
	"value" : 700
}, {
	"name" : "其他",
	"value" : 1000
} ]

function renderProjectTypeOptions(nodeId) {
	$.each(projectTypes, function(index, projectType) {
		$('#' + nodeId).append('<option value="' + projectType.value + '">' + projectType.name + '</option>')
	})
}

function convertProjectType(nodeClass) {
	$.each($('.' + nodeClass), function(index, node) {
		var projectTypeValue = $(node).attr('data-rel');
		$.each(projectTypes, function(index, projectType) {
			if (projectTypeValue == projectType.value) {
				$(node).text(projectType.name)
			}
		})
	})
}